// @ts-nocheck
import http from './http';

function projectNameExist(model){
    return http.post("/aaa/v1/project/name/exist", model)
}
function projectDetail(model){
    return http.post("/aaa/v1/project/basic/read", model)
}

function formComponentSearch(model){
    return http.post("/aaa/v1/formComponent/search", model)
}

function formComponentQuery(model){
    return http.post("/aaa/v1/formComponent/query", model)
}

function seriesExport(model){
    return http.get("/aaa/v1/project/series/auxiliary_series/export?param="+model)
}

function listTool(model){
    return http.post("/aaa/v1/alg/sar/list_tool", model);
}

function projectCreate(model){
    return http.post("/aaa/v2/project/create", model);
}
function projectUpdate(model){
    return http.post("/aaa/v2/project/update", model);
}




function joinAlg(model){
    return http.post("/aaa/v1/project/edit/joinAlg", model); 
}

function heartSegmentStart(model){
    return http.post("/aaa/v1/heartSegment/start", model);
}

function heartSegmentResultRead(model){
    return http.post("/aaa/v1/heartSegment/resultRead", model);
}

function projectEetailV2(projectId){
    return http.get(`/aaa/v2/project/detail/${projectId}`);
    
}

function heartSegmentExport(model){
    return http.get(`/aaa/v1/heartSegment/export?param=${model}`);
}

function getImportResultList(model){
    return http.post("/aaa/v1/alg/sar/get_import_result_list/search", model);
}

function formComponentRead(model){
    return http.post("/aaa/v1/formComponent/read", model);
}

function sarImport(model){
    return http.post("/aaa/v1/alg/sar/import", model);
}







export {
    projectNameExist,
    projectDetail,
    formComponentSearch,
    formComponentQuery,
    seriesExport,
    listTool,
    projectCreate,
    projectUpdate,
    joinAlg,
    heartSegmentStart,
    heartSegmentResultRead,
    projectEetailV2,
    heartSegmentExport,
    getImportResultList,
    formComponentRead,
    sarImport,
}

